package vo;

import org.apache.hadoop.hbase.util.Bytes;

import util.Utils;

public class Vote extends EnqueteVo{
	public static final String TABLENAME = "vote";
	public static final String CF_ATTRIBUTES = "attributes";
	public static final String VOTE_VALUE = "value";
	
	@Override
	public byte[] gerarId(String[] args) {
		byte [] userIdInBytes = Utils.createStringInBytes(args[0]);
		byte [] commentIdInBytes = Utils.createStringInBytes(args[1]);
		String voteId = Utils.retornarUUID(); 
		byte [] voteIdInBytes = Utils.createStringInBytes(voteId);
		return Bytes.add(commentIdInBytes, userIdInBytes, voteIdInBytes);
	}
}
